﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Lonewolf.Entity
{
    public class LoginInfo:BaseEntity
    {
        public int? LoginType { get; set; }
        /// <summary>
        /// 关联用户外键
        /// </summary>
        [MaxLength(128)]
        public string UserId { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        [MaxLength(150)]
        public string LoginPwd { get; set; }
        /// <summary>
        /// 登录Key
        /// </summary>
        [MaxLength(50)]
        public string LoginKey { get; set; }
        /// <summary>
        /// 登录次数
        /// </summary>
        public int? LoginNumber { get; set; }
        /// <summary>
        /// 上次登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 本次登录时间
        /// </summary>
        public DateTime? LoginTime { get; set; }
        /// <summary>
        /// 登录IP
        /// </summary>
        [MaxLength(50)]
        public string LoginIp { get; set; }
    }
    public enum LoginType
    {
        admin=1,
        user= 2
    }
}
